using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace BaseData.Models.Mapping
{
    public class Web_Base_Link_NodeMap : EntityTypeConfiguration<Web_Base_Link_Node>
    {
        public Web_Base_Link_NodeMap()
        {
            // Primary Key
            this.HasKey(t => t.PkId);

            // Properties
            // Table & Column Mappings
            this.ToTable("Web_Base_Link_Node");
            this.Property(t => t.PkId).HasColumnName("PkId");
            this.Property(t => t.SortId).HasColumnName("SortId");
            this.Property(t => t.ParentId).HasColumnName("ParentId");
            this.Property(t => t.NodeId).HasColumnName("NodeId");
            this.Property(t => t.Title).HasColumnName("Title");
            this.Property(t => t.Content).HasColumnName("Content");
            this.Property(t => t.Icon).HasColumnName("Icon");
            this.Property(t => t.FlagStatus).HasColumnName("FlagStatus");
            this.Property(t => t.FlagView).HasColumnName("FlagView");
            this.Property(t => t.FlagStop).HasColumnName("FlagStop");
            this.Property(t => t.FlagPass).HasColumnName("FlagPass");
        }
    }
}
